<template>
	<view class="">
		<view class="paper-right-popup-mask" v-show="show" @tap="hidepopup"></view>
		<view class="paper-right-popup" v-show="show">
			<view class="u-f-ac" hover-class="paper-right-popup-h" @tap="addfriend">
				<view class="icon iconfont icon-sousuo"></view>
				加趣友
			</view>
			<view class="u-f-ac" hover-class="paper-right-popup-h" @tap="clear">
				<view class="icon iconfont icon-qingchu"></view>
				清除未读
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			show: Boolean
		},
		methods:{
			hidepopup(){
				this.$emit('hide');
			},
			addfriend(){
				this.$emit('addfriend');
			},
			clear(){
				this.$emit('clear');
			}
		}
	}
</script>

<style scoped>
	.paper-right-popup-mask{
		position: fixed;
		right: 0;
		left: 0;
		top: 0;
		bottom: 0;
		z-index: 999998;
	}
	.paper-right-popup{
		position: fixed;
		right: 0;
		top: 10upx;
		background: #FFFFFF;
		z-index: 999999;
		width: 55%;
		box-shadow: 0upx 0upx 10upx 2upx #CCCCCC;
	}
	.paper-right-popup>view{
		padding: 20upx;
		font-size: 35upx;
	}
	.paper-right-popup>view>view{
		margin-right: 10upx;
		font-weight: bold;
	}
	.paper-right-popup-h{
		background: #EEEEEE;
	}
</style>
